//
//  WCIImageTextView.h
//  AFBrowser
//
//  Created by alfie on 2021/1/25.
//

#import <UIKit/UIKit.h>
#import "MOImageLabel.h"

@class WCIImageTextView;

@protocol MOImageTextViewDelegate <NSObject>

- (void)didSelectedImageTextView:(WCIImageTextView *)imageTextView;

@end


@interface WCIImageTextView : UIView

/** 文本 */
//@property (nonatomic, strong) UILabel            *titleLb;
//
///** 图片 */
//@property (nonatomic, strong) UIImageView        *imageView;

/** 代理 */
@property (nonatomic, weak) id <MOImageTextViewDelegate>            delegate;

@property(nonatomic,strong) UIFont      *font;
@property(nonatomic,strong) UIColor     *textColor;
@property(nonatomic)        NSTextAlignment    textAlignment;
@property(nonatomic)        NSLineBreakMode    lineBreakMode;
@property(nonatomic) NSInteger numberOfLines;
@property (nonatomic, copy) NSString            *text;
@property(nonatomic,copy)   NSAttributedString *attributedText;

/// 是否正常展示，不展示颜色 标签
@property (nonatomic, assign) BOOL isShowNomal;

- (void)attachText:(NSString *)text image:(UIImage *)image titleSpaceImage:(CGFloat)titleSpaceImage imageSize:(CGSize)imageSize maxWidth:(CGFloat)maxWidth;

- (void)displayWithData:(id)data maxWidth:(CGFloat)maxWidth;

@end


